!!!###!!!title=138-How to customize the font size of words in Word Cloud Chart——VisActor/VChart FAQ documents!!!###!!!

How to customize the font size of words in Word Cloud Chart?

Question Description

How to customize the text size in the word cloud, I want the text with more weight to be displayed larger. For example, in the example below, I want the largest text size to be 40px. How do I do that? wordcloud fontsize

Solution

You can set wordCloudChart.fontSizeRange to configure the font size range, which indicates the text size corresponding to the minimum and maximum values of the data respectively, in the example you gave, you can configure wordCloudChart.fontSizeRange: [5, 40] to achieve the desired effect.

Code Example

Quote